<%--
  Created by IntelliJ IDEA.
  User: Jia_ly
  Date: 2017/3/14
  Time: 15:42
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
            + path;
    request.setAttribute("basePath", basePath);
%>
<%@ include file="../frame/head.jsp" %>
<script src="${basePath}/resources/investigation/js/question/paperstrategies.js"></script>
<html>
<style type="text/css">
    .table td {
        vertical-align: middle!important;
    }
</style>
<head>
    <title>组卷策略</title>
</head>
<body>
<section>
    <%@include file="../frame/top.jsp" %>
    <section class="boxMain">
        <section class="hbox stretch">
            <%@include file="../frame/aside.jsp" %>
            <div>
                <header>
                    <h3 style="color: #0b6cbc;text-align: center">组卷策略</h3>
                    <h5 style="text-align: center">选择、判断、填空每题 2 分，主观题每题 10 分，试卷总分 100 分</h5>
                </header>
                <hr>
                <div>
                    <p style="font-size: 14px;color: red;">*&nbsp;&nbsp;说明：主观题可多次添加，但提交失败后所有&nbsp;&nbsp;主观题&nbsp;&nbsp;数量需重新选择</p>
                    <table id="tab" class="table table-bordered">
                        <tr class="active">
                            <td align="center">选择科目</td>
                            <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                <select id="field" style="width: 300px;height: 34px;text-align: center;">
                                </select>
                            </td>
                        </tr>
                        <tr class="success">
                            <td rowspan="3" align="center">选择题：</td>
                            <td>
                                简单题数量：<input id="jdcount1" type="text"
                                             style="width: 300px;height: 34px;text-align: center;">
                            </td>
                        </tr>
                        <tr class="success">
                            <td>
                                中等题数量：<input id="zdcount1" type="text" style="width: 300px;height: 34px;text-align: center;">
                            </td>
                        </tr>
                        <tr class="success">
                            <td>
                                难题数量&nbsp;&nbsp;&nbsp;&nbsp;：<input id="ntcount1" type="text"
                                                                    style="width: 300px;height: 34px;text-align: center;">
                            </td>
                        </tr>
                        <tr class="active">
                            <td rowspan="3" align="center">判断题：</td>
                            <td>
                                简单题数量：<input id="jdcount2" type="text" style="width: 300px;height: 34px;text-align: center;">
                            </td>
                        </tr>
                        <tr class="active">
                            <td>
                                中等题数量：<input id="zdcount2" type="text" style="width: 300px;height: 34px;text-align: center;">
                            </td>
                        </tr>
                        <tr class="active">
                            <td>
                                难题数量&nbsp;&nbsp;&nbsp;&nbsp;：<input id="ntcount2" type="text"
                                                                    style="width: 300px;height: 34px;text-align: center;">
                            </td>
                        </tr>
                        <tr class="success">
                            <td rowspan="3" align="center">填空题：</td>
                            <td>
                                简单题数量：<input id="jdcount3" type="text" style="width: 300px;height: 34px;text-align: center;">
                            </td>
                        </tr>
                        <tr class="success">
                            <td>
                                中等题数量：<input id="zdcount3" type="text" style="width: 300px;height: 34px;text-align: center;">
                            </td>
                        </tr>
                        <tr class="success">
                            <td>
                                难题数量&nbsp;&nbsp;&nbsp;&nbsp;：<input id="ntcount3" type="text"
                                                                    style="width: 300px;height: 34px;text-align: center;">
                            </td>
                        </tr>
                        <tr class="active">
                            <td rowspan="3" align="center">主观题：<br><br>
                                <select id="typeId" name="typeId" onchange="selectChange()" onclick="testclick()"
                                        style="width: 200px;height: 34px;">
                                </select>
                                <%--<br><br>
                                <button id="addone" type="button" class="btn btn-info" style="width: 200px;height: 34px;">继续添加主观题</button>--%>
                            </td>
                            <td>
                                简单题数量：<input id="jdcount4" name="zgt" type="text" style="width: 300px;height: 34px;text-align: center;">
                            </td>
                        </tr>
                        <tr class="active">
                            <td>
                                中等题数量：<input id="zdcount4" name="zgt" type="text" style="width: 300px;height: 34px;text-align: center;">
                            </td>
                        </tr>
                        <tr class="active">
                            <td>
                                难题数量&nbsp;&nbsp;&nbsp;&nbsp;：<input id="ntcount4" name="zgt" type="text"
                                                                    style="width: 300px;height: 34px;text-align: center;">
                            </td>
                        </tr>
                    </table>
                </div>
                <div class="form-group" style="text-align:center">
                    <button id="submit" type="button" onclick="commit()" class="btn btn-success" style="width: 120px;">
                        提交
                    </button>
                    <button id="cancel" type="button" onclick="history.go(-1)" class="btn btn-info"
                            style="width: 120px;">返回
                    </button>
                </div>
            </div>
        </section>
    </section>
</section>
</body>
</html>
<%--
<script>
    var i = 5;
    $("#addone").click(function () {
        var str = "<tr class=\"success\"> <td rowspan=\"3\" align=\"center\">主观题：<br>"
        +"<select id='typeId" + i + "'" + " name=\"typeId\" style=\"width: 200px;height: 34px;\"></select></td>" +
        "<td>简单题数量：<input id='jdcount" + i + "'" + "name=\"zgt\" type=\"text\" style=\"width: 300px;height: 34px;\">" +
        "</td></tr><tr class=\"success\"><td>中等题数量：<input id='zdcount" + i + "'" + "name=\"zgt\" type=\"text\" style=\"width: 300px;height: 34px;\">" +
        "</td> </tr><tr class=\"success\"><td>难题数量&nbsp;&nbsp;&nbsp;&nbsp;：<input id='ntcount" + i + "'" + "name=\"zgt\" type=\"text\" style=\"width: 300px;height: 34px;\"></td></tr>"
        $("#tab").append(str);
        Qtype();
        i += 1;
    });
</script>--%>
